home *** CD-ROM | disk | FTP | other *** search
/ Aminet 50 / Aminet 50 (2002)(GTI - Schatztruhe)[!][Aug 2002].iso / Aminet / text / edit / tecoc-146.lha / exec.c < prev    next >
C/C++ Source or Header  |  1991-07-05  |  759b  |  32 lines

  1. /*****************************************************************************
  2.  
  3.     ExeC()
  4.  
  5.     This function executes a C command.
  6.  
  7.     nC    Advance n characters
  8.  
  9. *****************************************************************************/
  10.  
  11. #include "zport.h"        /* define portability identifiers */
  12. #include "tecoc.h"        /* define general identifiers */
  13. #include "defext.h"        /* define external global variables */
  14.  
  15. DEFAULT ExeC()            /* execute a C command */
  16. {
  17.     DBGFEN(1,"ExeC",NULL);
  18.  
  19.     if (EStTop == EStBot) {            /* if no numeric argument */
  20.         NArgmt = 1;            /* default is 1C */
  21.     } else {
  22.         UMinus();            /* if it's -C, make it -1C */
  23.         if (GetNmA() == FAILURE) {
  24.             DBGFEX(1,DbgFNm,"FAILURE");
  25.             return FAILURE;
  26.         }
  27.     }
  28.  
  29.     DBGFEX(1,DbgFNm,"DoCJR");
  30.     return DoCJR(NArgmt);
  31. }
  32.